//
// Created by jiangpenghui on 2023/4/20.
//

#ifndef CMAKECXX_TIME_H
#define CMAKECXX_TIME_H
#include <iostream>

class Time {
private:
    int hours;
    int minutes;
public:
    Time();

    Time(int h, int m = 0) : hours(h), minutes(m) {};

    void AddMin(int m);

    void AddHr(int h);

    void Rest(int h = 0, int m = 0);

    Time Sum(const Time &t) const;

    void Show() const;

};


#endif //CMAKECXX_TIME_H
